﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bricks.MiuiThemeMaker.BRMiuiThemeMaker
{
    public class SystemData
    {
        #region 单件实体访问
        private readonly static SystemData instance = new SystemData();
        public static SystemData Instance
        {
            get
            {
                return instance;
            }
        }
        #endregion

        private DBType dbType = DBType.SqlCompact;  //默认为Sql Compact数据库
        /// <summary>
        /// 数据库类型
        /// </summary>
        public DBType DBType
        {
            get
            {
                return dbType;
            }
            set
            {
                dbType = value;
            }
        }

        /// <summary>
        /// 应用程序基目录
        /// </summary>
        public string BaseDirectory
        {
            get
            {
                return AppDomain.CurrentDomain.BaseDirectory;
            }
        }

        private string baseV2MTZ = "MIUI-orignal-V2.mtz";
        /// <summary>
        /// 基础主题MTZ-V2包
        /// </summary>
        public string BaseV2MTZ
        {
            get
            {
                return baseV2MTZ;
            }
        }

        private string baseV4MTZ = "MIUI-orignal-V4.mtz";
        /// <summary>
        /// 基础主题MTZ-V4包
        /// </summary>
        public string BaseV4MTZ
        {
            get
            {
                return baseV4MTZ;
            }
        }

        /// <summary>
        /// 主题路径（本地路径，每次新增或打开时，都会写入该属性）
        /// </summary>
        public string ThemePath { get; set; }

        /// <summary>`
        /// 操作历史记录数
        /// </summary>
        public int? HistoryCount { get; set; }

        /// <summary>
        /// 需保存的记录数
        /// </summary>
        public int? SaveCount { get; set; }
    }
}
